package cn.felord.memberservice.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Author: Dax
 * Description:
 * Date: 2018/4/5
 * Time: 23:19
 */

@TableName("userrole")
public class UserRole implements Serializable {
    private static final long serialVersionUID = 4371957285186575200L;
     @TableId(type = IdType.INPUT)
    private String userId;
    @TableId(type = IdType.INPUT)
    private String roleId;
    private String crtUser;
    private String crtTime;
    private String enabled;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(String crtUser) {
        this.crtUser = crtUser;
    }

    public String getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(String crtTime) {
        this.crtTime = crtTime;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return "{" +
                "userId:" + userId +
                ", roleId:" + roleId +
                ", crtUser:" + crtUser +
                ", crtTime:" + crtTime +
                ", enabled:" + enabled +
                '}';
    }
}
